package hqu.cst.XAH.pojo;


import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.Data;

@Data
public class Movie {
	 	private Long id;
	    @NotBlank(message = "标题不能为空")
	    @Size(max = 100, message = "标题长度不能超过 100 个字符")
	    private String title;
	    @NotBlank(message = "导演不能为空")
	    @Size(max = 100, message = "导演长度不能超过 100 个字符")
	    private String director;
	    @Size(max = 500, message = "描述长度不能超过 500 个字符")
	    private String description;
	    private String posterUrl;


}
